package xiaocao.learn.designmodel.iterator;

public class LinkedList implements Collection{
	private Node head = null;
	private Node tail = null;
	private int size;
	public void add(Object o){
		Node node = new Node(o,null);
		if(head == null){
			head = node;
			tail = node;
		}else{
			tail.setNext(node);
			tail = node;
		}
		size++;
		
		
	}
	public int size(){
		return size;
	}
	public Iterator iterator(){
		return null;
	}
	
	

}
